package org.frog.sgs.client.process.all;

import org.apache.mina.core.session.IoSession;
import org.frog.sgs.client.game.ClientInstance;
import org.frog.sgs.client.process.ClientProcessor;
import org.frog.sgs.event.SgsEventCode;
import org.frog.sgs.io.SgsMsg;

/**
 * @author duanxiangqi
 * @date 2012-10-26
 */
public class ClientProcessorSystemAll implements ClientProcessor {

	public void process(IoSession session, SgsMsg msg, ClientInstance instance) throws Exception {
		int code = msg.getCode();
		switch (code) {
		case SgsEventCode.SERVER_BROADCAST_MSG:
			System.out.println(msg.readString());
			break;

		default:
			break;
		}
	}
}